package com.example.message;

import java.io.Serializable;
import java.util.UUID;


/****
 *
 * 请求消息内容
 */
public class Request implements Serializable {

    //请求id
    private String id = UUID.randomUUID().toString();

    //默认是心跳包
    private String type = RequestType.HEARTBEAT;

    //请求数据
    private Object data;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
